import request from "@/api/axios"

const path = {
    dataBase: "/config/database",
}

export const DataBaseApi = {
    save: (params) => {
        return request.post(path.dataBase + "/save", params)
    },

    delete: (id) => {
        return request.get(path.dataBase + "/delete", { id: id })
    },

    getOne: (id) => {
        return request.get(path.dataBase + "/getOne", { id: id })
    },

    list: () => {
        return request.get(path.dataBase + "/list")
    },

    test: (params) => {
        return request.post(path.dataBase + "/test", params)
    },
}
